package com.lekang.system.service;

import java.util.List;
import com.lekang.system.domain.Contract;

public interface IContractService 
{
    public Contract selectContractById(Long id);
    public List<Contract> selectContractList(Contract contract);
    public int insertContract(Contract contract);
    public int updateContract(Contract contract);
    public int deleteContractByIds(Long[] ids);
    public int deleteContractById(Long id);
    
    /**
     * 更新合同状态（定时任务使用）
     */
    public int updateContractStatus();
    
    /**
     * 解除合同（设置状态为已失效）
     */
    public int terminateContract(Long id, Long submitterId, String terminationAgreement);
}
